//
//  MyCell.m
//  ieGou
//
//  Created by 潮汐 on 15-1-28.
//  Copyright (c) 2015年 chaox. All rights reserved.
//

#import "MyCell.h"

@implementation MyCell 
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // 请输入用户名
        self.textField1 = [[UITextField alloc] init];
        self.textField1.frame = CGRectMake(50, 0, 150, 50);
        self.textField1.placeholder = @"请输入用户名";
        self.textField1.tag = 100001;
        self.textField1.delegate = self;
        self.textField1.clearButtonMode = UITextFieldViewModeAlways;
        [_textField1 release];
        
        
        // 请输入密码
        self.textField2 = [[UITextField alloc] init];
        self.textField2.frame = CGRectMake(140, 200, 150, 50);
        self.textField2.placeholder = @"请输入密码";
        self.textField2.tag = 10002;
        self.textField2.delegate = self;
        self.textField2.clearButtonMode = UITextFieldViewModeAlways;
        self.textField2.secureTextEntry = YES;
        [_textField2 release];
        
    }
    return self;
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)dealloc
{
    [_textField1 release];
    [_textField2 release];
    [super dealloc];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
